//
//相对文档
TOOLS.getMousePagePos=function (event) {
    var e = event || window.event ||  arguments.callee.caller.arguments[0]/*支持火狐*/ ;
    var scrollX = document.documentElement.scrollLeft
        || document.body.scrollLeft;
    var scrollY = document.documentElement.scrollTop
        || document.body.scrollTop;

    var x = e.pageX || e.clientX + scrollX;
    var y = e.pageY || e.clientY + scrollY;

    return [x,y];
}

//相对屏幕
TOOLS.getMouseScreenPos=function (event) {
    var e = event || window.event   ||  arguments.callee.caller.arguments[0];
    return [e.screenX,e.screenY]
}

//相对相对浏览器窗口
TOOLS.getMouseClientPos=function (event) {
    var e = event || window.event  ||  arguments.callee.caller.arguments[0];
    return [e.clientX,e.clientY]
}
//